package routers

import (
	"film/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/zc", &controllers.UserController{}, "POST:Zc")
	beego.Router("/upload", &controllers.FilmController{}, "POST:Upload")
	beego.Router("/add", &controllers.FilmController{}, "POST:Add")
	beego.Router("/upt", &controllers.FilmController{}, "POST:Upt")
	beego.Router("/list", &controllers.FilmController{}, "GET:List")
	beego.Router("/del", &controllers.FilmController{}, "GET:Del")
	beego.Router("/info", &controllers.FilmController{}, "GET:Info")
}
